/**
 * add by yang.bo
 */
 define(function(){
 	return {
 		 //获取主机数据
 		queryHost: function(stringJson,success){
	    	return ngc.callServerFunction("com.ztesoft.hostapp.inf.HostAppInf", "queryHost"
	    			,stringJson,success);
	    },
	    //编辑主机
	    editHost: function(stringJson,success){
	    	return ngc.callServerFunction("com.ztesoft.hostapp.inf.HostAppInf", "editHost"
	    			,stringJson,success);
	    },
	    //删除主机
	    delHost: function(id,success){
	    	return ngc.callServerFunction("com.ztesoft.hostapp.inf.HostAppInf", "delHost"
	    			,parseInt(id), success);
	    },
	    
	    //获取应用数据
	    queryApp: function(stringJson,success){
	    	return ngc.callServerFunction("com.ztesoft.hostapp.inf.HostAppInf", "queryApp"
	    			,stringJson,success);
	    },
	    //编辑应用
	    editApp: function(stringJson,success){
	    	return ngc.callServerFunction("com.ztesoft.hostapp.inf.HostAppInf", "editApp"
	    			,stringJson,success);
	    },
	    //删除应用
	    delApp: function(id,success){
	    	return ngc.callServerFunction("com.ztesoft.hostapp.inf.HostAppInf", "delApp"
	    			,parseInt(id), success);
	    }
 	}
 });